﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<SportsStore.Domain.Entities.Product>>" %>
<%@ Import Namespace="SportsStore.Domain.Entities" %>
<%@ Import Namespace="SportsStore.WebUI.HtmlHelpers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Products
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
     <%
     foreach (var product in Model)
     { 
     %>
    <div class="item">
    <h3 style=" color:pink; "><%:product.Name %></h3>
    <%: product.Description %>
   <h4> <%: product.Price.ToString("c") %> </h4> 
    </div>
         
      <%
     }
    %>
    <%:
        
        Html.PageLinks(
            new SportsStore.WebUI.Models.PagingInfo { ItemPerPage =10, TotalItems = 28, CurrentPage=2 },
            i=>Url.Action("List",new {page = i})
            )
    %>
</asp:Content>
